package e.odbo.data.service.lock;

import com.openbravo.data.basic.BasicException;

public interface I_LockService {
     //带超时
     boolean lock(String id)throws BasicException ;

     void unLock(String id)throws BasicException;

     //决对锁，不锁不罢休
     void lock(String id,LockedListener listener);
}
